]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Don't show page indicators if there's only one page
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 3 Sep 2013 10:07:28 +0000 (12:07 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 3 Sep 2013 11:54:21 +0000 (13:54 +0200)
It doesn't make sense to show the indicators in that case, so
don't show them. This has been the design in the first place,
but the code that did that was lost at some point during review ...

https://bugzilla.gnome.org/show_bug.cgi?id=707363

js/ui/appDisplay.js

index bc4afee4052444f4cc715b5e1b88afcd158eb45d..10d10d1cb74dd75e2eeab4a6e345b23566cf1e48 100644 (file)
@@ -224,6 +224,7 @@ const PageIndicators = new Lang.Class({
                 children[i].destroy();
         }
         this._nPages = nPages;
+        this.actor.visible = (this._nPages > 1);
     },
 
     setCurrentPage: function(currentPage) {